{template Public:Admin:header}

<div class="row">
  <div class="col-lg-12">
    <div class="table-toolbar">
      <div class="row">
        <div class="col-lg-12">
          <div class="text-right"> </div>
        </div>
      </div>
      <div class="row">
        <div>
          <form action="{echo U($module.'/'.CONTROLLER_NAME.'/index')}">
            <div class="col-lg-2">
              <input name="id" type="text" class="form-control" placeholder="ID" value="{if !empty($selectarray['id'])}{echo $selectarray['id']}{/if}"/>
            </div>
            <div class="col-lg-2">
              <input name="oid" type="text" class="form-control" placeholder="稿件ID" value="{if !empty($selectarray['oid'])}{echo $selectarray['oid']}{/if}"/>
            </div>
            <div class="col-lg-2">
              <input name="buyer_uid" type="text" class="form-control" placeholder="买家UID" value="{if !empty($selectarray['buyer_uid'])}{echo $selectarray['buyer_uid']}{/if}"/>
            </div>
            <div class="col-lg-2">
              <input name="seller_uid" type="text" class="form-control" placeholder="卖家UID" value="{if !empty($selectarray['seller_uid'])}{echo $selectarray['seller_uid']}{/if}"/>
            </div>
            <div class="col-lg-2">
              <input name="subject" type="text"  class="form-control" placeholder="名称" value="{if !empty($selectarray['subject'])}{echo $selectarray['subject']}{/if}"/>
            </div>
            <div class="col-lg-2">
              <input class="btn btn-default search-button" name="搜索" type="submit" value="搜索" />
              <input type="hidden" name="search" value="1" />
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>
</div>


<div case="grid" id="editabledatatable_wrapper" class="dataTables_wrapper form-inline no-footer">
  
  <table id="editabledatatable" class="table table-striped table-hover table-bordered dataTable no-footer" aria-describedby="editabledatatable_info">
    <thead>
      <tr case="row">
            
          {foreach $orderarr $key=>$value}
          <th onClick="window.location.href='{echo U($module.'/'.CONTROLLER_NAME.'/index/sqlorder/'.$key.'/iforder/'.$iforder.'/p/'.$pagenum)}'" tabindex="0" aria-controls="editabledatatable" rowspan="1" colspan="1"  aria-sort="ascending" aria-label="{echo $value['name']}" {if $key==$sqlorder} {if $iforder==2}  class="sorting_desc"{else} class="sorting_asc"{/if}{else} class="sorting"{/if}> {echo $value['name']} </th>
          {/foreach}
          
          
        <th class="sorting_disabled" rowspan="1" colspan="1"> </th>
      </tr>
    </thead>
    <tbody>
    
    {if $list}    
    {foreach $list $value}
    <tr>
      <td>
        {echo $value['id']}
        </td>
       <td>
        {echo $value['oid']}
        </td>
        <td>
            <a href="/task/{echo $value['id']}" target="_blank">{echo $value['subject']}</a>
        </td>
    
        <td>
           {echo FormatDate("Y/m/d",$value['buyer_evaluate_time'])}
        </td>
          <td>
           {echo $value['buyer_uid']}
        </td>
          <td>
           {echo $value['buyer_username']}
        </td>
          <td>
             {if $value['buyer_evaluate']==1}<span class="label label-success">好评</span>{elseif $value['buyer_evaluate']==2}<span class="label label-default">中评</span>{elseif $value['buyer_evaluate']==3}<span class="label label-danger">差评</span>{/if}
          </td>
          <td>
             {echo $value['buyer_evaluate_content']}
          </td>
        
        
         <td>
           {echo FormatDate("Y/m/d",$value['seller_evaluate_time'])}
        </td>
        
         <td>
             {echo $value['seller_uid']}
          </td>
          
        
          <td>
             {echo $value['seller_username']}
          </td>
          
          <td>
              {if $value['seller_evaluate']==1}<span class="label label-success">好评</span>{elseif $value['seller_evaluate']==2}<span class="label label-default">中评</span>{elseif $value['seller_evaluate']==3}<span class="label label-danger">差评</span>{/if}
          </td>
          <td>
             {echo $value['seller_evaluate_content']}
          </td>
          
         <td>
        {if $value['process']==1 && $value['seller_is_evaluate']==1}<span class="label label-success">卖家已评价</span>{/if}
         {if $value['process']==1 && $value['buyer_is_evaluate']==1}<span class="label label-success">买家已评价</span>{/if}
        </td>
    </tr>
    {/foreach}
    
    {/if}
      </tbody>
    
  </table>
  <div class="row DTTTFooter">
    <div class="col-sm-6">
      <div class="dataTables_info" id="simpledatatable_info" case="alert" aria-live="polite" aria-relevant="all">总共{echo $count}条数据</div>
    </div>
    <div class="col-sm-6">
      <div class="dataTables_paginate paging_bootstrap" id="simpledatatable_paginate">
        <ul class="pagination">
          {if $page}{echo $page}{/if}
        </ul>
      </div>
    </div>
  </div>
</div>
  

{template Public:Admin:footer}